package com.wind.taobao.api.trade.itemprop.rest
{
	import com.wind.taobao.api.IPrivateAPI;
	import com.wind.taobao.core.exception.InvalidRequestParametersException;
	import com.wind.taobao.core.util.TaobaoUtils;
	import com.wind.taobao.core.webservice.TaobaoRequest;

	/**
	 * taobao.itemcats.authorize.get Request
	 * @author fxy
	 *
	 */
	public class ItemCatsAuthorizeGetRequest extends TaobaoRequest implements IPrivateAPI
	{
		public override function get method():String
		{
			return "taobao.itemcats.authorize.get"
		}
		/**
		 * Y 	 需要返回的字段。目前支持有：brand.vid, brand.name,item_cat.cid, item_cat.name, item_cat.status,item_cat.sort_order,item_cat.parent_cid,item_cat.is_parent
		 */
		[Bindable]
		public var fields:String;

		public override function validate():void
		{
			if (!TaobaoUtils.hasValue(fields))
			{
				throw new InvalidRequestParametersException("请求参数[fields]必须有值");
			}
		}
	}
}